using System;

namespace Nairo.Parser
{
	public class Token
	{
		string tokenText;
		int start;
		int end;
		
		public Token() : this("", -1, -1)
		{
		}
		
		public Token(string tokenText, int start, int end)
		{
			this.tokenText = tokenText;
			this.start = start;
			this.end = end;
		}
		
		public string TokenText {
			get { return tokenText; }
			set { tokenText = value; }
		}
		
		public int Start {
			get { return start; }
			set { start = value; }
		}
		
		public int End {
			get { return end; }
			set { end = value; }
		}
		
		public override string ToString()
		{
			return string.Format(" [ Text: '{0}', Start: {1}, End: {2} ] ", tokenText, start, end);
		}
	}
}
